package com.opp.demo05;
//学生 is a 人 派生类 ：子类
public class Student extends Person {
    public Student() {
        super();
        System.out.println("Student无参执行了");
    }


    private String name = "guangsheng";
//    public void test(String name){
//        System.out.println(name);//梁光胜
//        System.out.println(this.name);//guangsheng
//        System.out.println(super.name);//liang
//    }


    public void test1(){
        print();//Student
        this.print();//Student
        super.print();//Person
    }
    public void print(){
        System.out.println("Student");
    }

}
